<?php
class MaterialStatisticForm extends CFormModel {
	public $materialModelId;
	public $projectId;
	//	public $tagId;
	public function rules() {
		return array(
			array(
				'projectId, materialModelId',
				'numerical',
				'integerOnly' => true,
			),
			array(
				'materialModelId',
				'required',
				'on' => 'priceCheck'
			),
			array(
				'projectId, materialModelId',
				'required',
				'on' => 'projectStatistic'
			),
		);
	}

	public function attributeLabels() {
		return array(
			'projectId' => '项目',
			'materialModelId' => '物品',
		);
	}
}
